package com.fowo.api.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fowo.api.sys.entity.SysUserSetting;
import com.fowo.api.sys.model.UserSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserSettingMapper extends BaseMapper<SysUserSetting> {
    UserSetting getValueByUserIdAndKey(@Param("userId") Long userId, @Param("key") String key);
    Integer updateValueByUserIdAndKey(SysUserSetting setting);
}
